/**
 * Created by madi on 2018/8/13.
 */
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'dva';
import styles from './index.less';
import DashBoard from './dashboardNew';

const Dashboard = ({ dashboard, dispatch, loading }) => (
    <div className={styles.container}>
        <DashBoard dispatch={dispatch}{...dashboard}/>
    </div>
);


Dashboard.propTypes = {
    dashboard: PropTypes.object,
    loading: PropTypes.object,
    dispatch: PropTypes.func,
};

export default connect(({ dashboard, loading }) => ({ dashboard, loading }))(Dashboard);
